+2005-06-10 Michael Natterer <mitch@imendio.com>
+
+ * gtk/gtk.symbols
+ * gtk/gtkaction.[ch] (gtk_action_get_accel_closure): new function
+ to get an action's accel_closure (Fixes #141750 and #148106).
+
2005-06-10 Matthias Clasen <mclasen@redhat.com>
* gdk/gen-keyname-table.pl: Generate N_() calls for
+2005-06-10 Michael Natterer <mitch@imendio.com>
+
+ * gtk/gtk.symbols
+ * gtk/gtkaction.[ch] (gtk_action_get_accel_closure): new function
+ to get an action's accel_closure (Fixes #141750 and #148106).
+
2005-06-10 Matthias Clasen <mclasen@redhat.com>
* gdk/gen-keyname-table.pl: Generate N_() calls for
+2005-06-10 Michael Natterer <mitch@imendio.com>
+
+ * gtk/gtk.symbols
+ * gtk/gtkaction.[ch] (gtk_action_get_accel_closure): new function
+ to get an action's accel_closure (Fixes #141750 and #148106).
+
2005-06-10 Matthias Clasen <mclasen@redhat.com>
* gdk/gen-keyname-table.pl: Generate N_() calls for
gtk_action_create_tool_item
gtk_action_disconnect_accelerator
gtk_action_disconnect_proxy
+gtk_action_get_accel_closure
gtk_action_get_accel_path
gtk_action_get_name
gtk_action_get_proxies
return NULL;
}
+/**
+ * gtk_action_get_accel_closure:
+ * @action: the action object
+ *
+ * Returns the accel closure for this action.
+ *
+ * Since: 2.8
+ *
+ * Returns: the accel closure for this action. The returned closure is
+ * owned by GTK+ must and not be unrefed or modified.
+ */
+GClosure *
+gtk_action_get_accel_closure (GtkAction *action)
+{
+ g_return_val_if_fail (GTK_IS_ACTION (action), NULL);
+
+ return action->private_data->accel_closure;
+}
+
/**
* gtk_action_set_accel_group:
void gtk_action_connect_accelerator (GtkAction *action);
void gtk_action_disconnect_accelerator (GtkAction *action);
G_CONST_RETURN gchar *gtk_action_get_accel_path (GtkAction *action);
+GClosure *gtk_action_get_accel_closure (GtkAction *action);
/* protected ... for use by child actions */
void gtk_action_block_activate_from (GtkAction *action,